package com.zhangsr.zus.remoting.api;

import java.net.InetSocketAddress;
import java.util.Collection;

/**
 * @Author: zhangsr
 */
public interface Server extends Endpoint {

    /**
     * get channels.
     *
     * @return channels
     */
    Collection<Channel> getChannels();

    /**
     * get channel.
     *
     * @param remoteAddress
     * @return channel
     */
    Channel getChannel(InetSocketAddress remoteAddress);
}
